package net.huashitong.ssydt.provider.pk.mapper;


import net.huashitong.ssydt.base.dao.LongMapper;
import net.huashitong.ssydt.pk.entity.SsPkYmdxQuestionRelation;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SsPkYmdxQuestionRelationMapper extends LongMapper<SsPkYmdxQuestionRelation> {

    /**
     * 根据日期获取题目
     *
     * @param date
     * @return
     */
    List<SsPkYmdxQuestionRelation> queryFiveQuestionByBelongDate(String date);

    /**
     * 获取最新的5题
     *
     * @return
     */
    List<SsPkYmdxQuestionRelation> queryFiveQuestionByNewest();

    /**
     * 批量写入
     *
     * @param ssPkYmdxQuestionRelations
     * @return
     */
    int batchInsert(List<SsPkYmdxQuestionRelation> ssPkYmdxQuestionRelations);
}